﻿
@{
    Layout = "~/Views/Shared/Index.cshtml";
}
@model  YaYun.Models.Employee


<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>xq</title>
    <style>
        .well {
            background-color: #fff;
         /*   border: 1px solid #ccc;*/
            -webkit-box-shadow: 1px 1px 0px #ffffff;
            -moz-box-shadow: 1px 1px 0px #ffffff;
            box-shadow: 1px 1px 0px #ffffff;
            -webkit-border-radius: 0px;
            -moz-border-radius: 0px;
            border-radius: 0px;
            -moz-background-clip: padding;
            -webkit-background-clip: padding-box;
            background-clip: padding-box;
            height: 50vh;
            width: 50vh;          
        }

        h1 {
            margin: 1em 0em;
            padding: 0em;
            line-height: 1em;
            font-size: 1.5em;
            color: #eee;
            color: #333;
        }
        #editBox {
            margin-left: 200px;
        }
    </style>
    <script>
        function UpdateEmplo(id) {
            window.location = ("/home/UpdateEmployee?id=" + id)
        }
    </script>
</head>
<body>
    <a href="/home/Employee" class="btn btn-link">     
        <img src="~/images/图标/箭头左_arrow-left.png" style="height:30px" />
    </a>
  
    <fieldset>

        <div id="editBox">
            <h3>用户详情信息</h3>
            @using (Html.BeginForm("UpdateEmployee", "home", FormMethod.Post))
            {
                <h1></h1>
                <table class="well">
                    <tr>
                        <th>姓&emsp;&emsp;名：</th>
                        <td>
                            <input class="form-control" type="text" maxlength="11" required name="phone" value="@Model.EmployeeName" />
                        </td>
                    </tr>
                    <tr>
                        <th>手机号码：</th>
                        <td>
                            <input class="form-control" type="text" maxlength="11" required name="email" value="@Model.phone" />
                        </td>
                    </tr>
                    <tr>
                        <th>邮&emsp;&emsp;箱：</th>
                        <td>
                            <input class="form-control" type="text" maxlength="11" required name="EmployeeName" value="@Model.email" />
                        </td>
                    </tr>
                    <tr>
                        <th>性&emsp;&emsp;别：  </th>
                        <td>
                            <select name="gender" required class="form-control">
                                <option value="1" data-icon="male-icon.png">@(Model.gender=="1"?"男":"女")</option>
                                <option value="2">女</option>
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <th>部&emsp;&emsp;门：   </th>
                        <td>
                            <select name="DEP_id" required class="form-control  el-icon-arrow-down">
                                <option value="1">@Model.Department1.DepartmentName</option>
                                <option value="1">人力资源部</option>
                                <option value="2">市场部</option>
                                <option value="3">财务部</option>
                                <option value="4">技术部</option>
                                <option value="5">客服部</option>
                                <option value="6">销售部</option>
                                <option value="7">采购部</option>
                                <option value="8">行政部</option>
                                <option value="9">研发部</option>
                                <option value="10">运营部</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>职&emsp;&emsp;位： </th>
                        <td>

                            <select name="posi_id" required class="form-control">
                                <option class="caret" value="1">@Model.Position1.PositionName </option>
                                <option class="caret" value="1">人力资源 </option>
                                <option value="2"> 市场营销专员</option>
                                <option value="3"> 会计</option>
                                <option value="4"> 软件工程师</option>
                                <option value="5">客服专员</option>
                                <option value="6"> 销售代表</option>
                                <option value="7"> 采购专员</option>
                                <option value="8"> 行政专员</option>
                                <option value="9"> 研发工程师</option>
                                <option value="10"> 运营专员</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>入职时间：   </th>
                        <td> <input type="text" name="name" value="@Model.enter_date" /></td>
                    </tr>
                </table>

                <br />

                <a href="/home/Employee" class="btn btn-link">返回列表</a>

            }
        </div>
    </fieldset>
    <script>
        function UpdateEmployee(id) {
            window.location = ("/home/UpdateEmployee?id=" + id)
        }
    </script>


</body>
</html>
